var express = require("express");
var router = express.Router();
const { removeData, find, updata } = require("./database");

router.post("/", async function (req, res, next) {
  let userList = await removeData({ accountName: req.body.data });
  userList.length !== 0
    ? res.send({ result: true, userList: userList })
    : res.send({ result: false });
});

module.exports = router;
